package com.monitor.model;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 警告对象 每次储存的数据在写在normal里，若是为危险值就写在warn里
 * 线程苏醒时检查normal里是不是有每个传感器，检查warn里有没有数据，有就报警然后清空。
 * 
 * @author HanChen
 *
 */
public class Warning {
	private Map<Sensor, Date> normal;
	private Map<Sensor, Date> warn;
	private Map<String, Integer> temperature;
	public Warning() {
		normal = new HashMap<Sensor, Date>();
		warn = new HashMap<Sensor, Date>();

	}

	public Map<Sensor, Date> getWarn() {
		return warn;
	}

	public void setWarn(Map<Sensor, Date> warn) {
		this.warn = warn;
	}

	public Map<Sensor, Date> getNormal() {
		return normal;
	}

	public void setNormal(Map<Sensor, Date> normal) {
		this.normal = normal;
	}

	public Map<String, Integer> getTemperature() {
		return temperature;
	}

	public void setTemperature(Map<String, Integer> temperature) {
		this.temperature = temperature;
	}

}
